package com.slofzx.nuoda.evaluation.sysTools.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.ibatis.type.JdbcType;
import com.slofzx.nuoda.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 项目中所用到的上下级关联关系表(Cascade)实体类
 *
 * @author nuoda
 * @since 2024-03-22 16:40:09
 */
@TableName("SYS_CASCADE")
public class Cascade extends BaseEntity {
    private static final long serialVersionUID = -46765570055355779L;
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String name;
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String source;
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String type;
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String parentSource;
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String state;
    @TableField(jdbcType = JdbcType.NUMERIC)
    private Double sort;
    @TableField(jdbcType = JdbcType.TIMESTAMP)
    private Date updateTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParentSource() {
        return parentSource;
    }

    public void setParentSource(String parentSource) {
        this.parentSource = parentSource;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Double getSort() {
        return sort;
    }

    public void setSort(Double sort) {
        this.sort = sort;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Cascade{" +
                "name='" + name + '\'' +
                ", source='" + source + '\'' +
                ", type='" + type + '\'' +
                ", parentSource='" + parentSource + '\'' +
                ", state='" + state + '\'' +
                ", sort=" + sort +
                ", updateTime=" + updateTime +
                '}';
    }
}
